home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 2 / CU Amiga Magazine's Super CD-ROM 02 (1996)(EMAP Images)(GB)[!][issue 1996-04].iso / magazine / amiga_e / amigae.jan.archive / 000037_crash!plucky.i…b.af.mil!bwills_Mon, 17 Jan 94 01:18:51 PST.msg < prev    next >
Text File  |  1994-02-17  |  21KB  |  531 lines

  1. Received: by bkhouse.cts.com (V1.17-beta/Amiga)
  2.       id <1lnv@bkhouse.cts.com>; Mon, 17 Jan 94 01:18:51 PST
  3. Received: from kirk.safb.af.mil by crash.cts.com with smtp
  4.     (Smail3.1.28.1 #18) id m0pLhBt-0000N2C; Sun, 16 Jan 94 15:47 PST
  5. Received: from ike (ike [140.175.6.44]) by kirk.safb.af.mil (8.6.4/8.6.4) with SMTP id RAA11506 for <amigae@bkhouse.cts.com>; Sun, 16 Jan 1994 17:46:45 -0600
  6. Received: from plucky.safb.af.mil by ike (4.1/SMI-4.1)
  7.     id AA24959; Sun, 16 Jan 94 17:43:13 CST
  8. Received: by plucky.safb.af.mil (4.1/SMI-4.1)
  9.     id AA01225; Sun, 16 Jan 94 17:44:51 CST
  10. Date: Sun, 16 Jan 94 17:44:51 CST
  11. Message-Id: <9401162344.AA01225@plucky.safb.af.mil>
  12. From: bwills@plucky.safb.af.mil (Barry D Wills)
  13. To: 
  14. Subject: re: Image on a (gadtools) gadget
  15.  
  16. /*============================================*
  17.   Okay, Arvid et al.  Here it is.
  18.   Sample source for creating your own button
  19.   gadgets.  I tried to make the code somewhat
  20.   reusable.  Hope you enjoy it!
  21.   -- Barry
  22.  *============================================*/
  23. MODULE 'graphics/rastport',
  24.        'intuition/intuition',
  25.        'intuition/screens'
  26.  
  27. PROC newUpButton (left, top, width, height, id)
  28.   DEF g : PTR TO gadget,
  29.       upGadgetRender1 : PTR TO border,
  30.       upGadgetRender2 : PTR TO border,
  31.       upGadgetRender3 : PTR TO border,
  32.       upSelectRender1 : PTR TO border,
  33.       upSelectRender2 : PTR TO border,
  34.       upSelectRender3 : PTR TO border,
  35.       upXY1 : PTR TO INT,
  36.       upXY2 : PTR TO INT,
  37.       upXY3 : PTR TO INT
  38.   /*-- Line coordinates for borders. --*/
  39.   upXY3 := [ 3,6,  8, 4, 12, 6] : INT  -> Little arrow.
  40.   upXY2 := [16,0, 16,10,  0,10] : INT  -> Right and bottom edge.
  41.   upXY1 := [15,0,  -1, 0,  -1,10] : INT  -> Left and top edge.
  42.   /*-- Create and link border structures. --*/
  43.   upGadgetRender3 := [0,0,1,0,RP_JAM1,3, upXY3, NIL] : border
  44.   upGadgetRender2 := [0,0,1,0,RP_JAM1,3, upXY2, upGadgetRender3] : border
  45.   upGadgetRender1 := [0,0,2,0,RP_JAM1,3, upXY1, upGadgetRender2] : border
  46.   upSelectRender3 := [0,0,1,0,RP_JAM1,3, upXY3, NIL] : border
  47.   upSelectRender2 := [0,0,2,0,RP_JAM1,3, upXY2, upSelectRender3] : border
  48.   upSelectRender1 := [0,0,1,0,RP_JAM1,3, upXY1, upSelectRender2] : border
  49.   /*-- Create and initialize gadget. --*/
  50.   IF (g := New (SIZEOF gadget)) = NIL THEN Raise ("MEM")
  51.   g.nextgadget := NIL
  52.   g.leftedge := left
  53.   g.topedge := top
  54.   g.width := width
  55.   g.height := height
  56.   g.flags := GFLG_GADGHIMAGE
  57.   g.activation := GACT_RELVERIFY + GACT_IMMEDIATE
  58.   g.gadgettype := GTYP_BOOLGADGET
  59.   g.gadgetrender := upGadgetRender1
  60.   g.selectrender := upSelectRender1
  61.   g.userdata := id
  62. ENDPROC  g
  63.   /* newUpButton */
  64.  
  65. PROC newDownButton (left, top, width, height, id)
  66. /*----------------------------------------------------*
  67.   Create an Up-Arrow Button gadget.  Supply the gadget
  68.   ID which will be placed in the userdata field.
  69.  *----------------------------------------------------*/
  70.   DEF g : PTR TO gadget,
  71.       downGadgetRender1 : PTR TO border,
  72.       downGadgetRender2 : PTR TO border,
  73.       downGadgetRender3 : PTR TO border,
  74.       downSelectRender1 : PTR TO border,
  75.       downSelectRender2 : PTR TO border,
  76.       downSelectRender3 : PTR TO border,
  77.       downXY1 : PTR TO INT,
  78.       downXY2 : PTR TO INT,
  79.       downXY3 : PTR TO INT
  80.   /*-- Line coordinates for borders. --*/
  81.   downXY3 := [ 3,4,  8, 6, 12, 4] : INT  -> Little arrow.
  82.   downXY2 := [16,0, 16,10,  0,10] : INT  -> Right and bottom edge.
  83.   downXY1 := [15,0,  -1, 0,  -1,10] : INT  -> Left and top edge.
  84.   /*-- Create and link border structures. --*/
  85.   downGadgetRender3 := [0,0,1,0,RP_JAM1,3, downXY3, NIL] : border
  86.   downGadgetRender2 := [0,0,1,0,RP_JAM1,3, downXY2, downGadgetRender3] : border
  87.   downGadgetRender1 := [0,0,2,0,RP_JAM1,3, downXY1, downGadgetRender2] : border
  88.   downSelectRender3 := [0,0,1,0,RP_JAM1,3, downXY3, NIL] : border
  89.   downSelectRender2 := [0,0,2,0,RP_JAM1,3, downXY2, downSelectRender3] : border
  90.   downSelectRender1 := [0,0,1,0,RP_JAM1,3, downXY1, downSelectRender2] : border
  91.   /*-- Create and initialize gadget. --*/
  92.   IF (g := New (SIZEOF gadget)) = NIL THEN Raise ("MEM")
  93.   g.nextgadget := NIL
  94.   g.leftedge := left
  95.   g.topedge := top
  96.   g.width := width
  97.   g.height := height
  98.   g.flags := GFLG_GADGHIMAGE
  99.   g.activation := GACT_RELVERIFY + GACT_IMMEDIATE
  100.   g.gadgettype := GTYP_BOOLGADGET
  101.   g.gadgetrender := downGadgetRender1
  102.   g.selectrender := downSelectRender1
  103.   g.userdata := id
  104. ENDPROC  g
  105.   /* newDownButton */
  106.  
  107. PROC createGList ()
  108. /*--------------------------------------*
  109.   Create and link Scroll Button Gadgets.
  110.  *--------------------------------------*/
  111.   DEF g : PTR TO gadget
  112.   g := newUpButton (154, 148, 15, 11, "UP")
  113.   g.nextgadget := newDownButton (154, 159, 15, 11, "DOWN")
  114. /*-------------------------*
  115.   To add more to the list:
  116.   g := g.nextgadget
  117.   g.nextgadget := newGad () ...
  118.  *-------------------------*/
  119. ENDPROC  g
  120.   /* createGList */
  121.  
  122. PROC main() HANDLE
  123.   DEF w = NIL: PTR TO window,
  124.       gadget : PTR TO gadget, gadgetId,
  125.       idcmpClass, reqMessage
  126.   IF (w := OpenW (0, 0, 300, 200,
  127.                   IDCMP_CLOSEWINDOW+IDCMP_GADGETDOWN,
  128.                   WFLG_CLOSEGADGET+WFLG_ACTIVATE+WFLG_SMART_REFRESH,
  129.                   'Create Gadget Demo', NIL, WBENCHSCREEN,
  130.                   createGList())) = NIL THEN Raise ("WIN")
  131.   REPEAT
  132.     idcmpClass := WaitIMessage (w)
  133.     IF idcmpClass = IDCMP_GADGETDOWN
  134.       gadget := MsgIaddr ()
  135.       gadgetId := gadget.userdata
  136.       SELECT gadgetId
  137.         CASE "UP";   reqMessage := 'Up'
  138.         CASE "DOWN"; reqMessage := 'Down'
  139.         DEFAULT;     reqMessage := 'PANIC!'  /*-- Should never happen. --*/
  140.       ENDSELECT
  141.       EasyRequestArgs (0, [20,0,0,
  142.                            'You pressed the \s Button???',
  143.                            'Right!'], 0, [reqMessage])
  144.     ENDIF
  145.   UNTIL idcmpClass = IDCMP_CLOSEWINDOW
  146.   CloseW (w)
  147.   CleanUp (0)
  148. EXCEPT
  149.   IF w THEN Close (w)
  150.   CleanUp (10)
  151. ENDPROC
  152. From crash!rbhp56.rbg.informatik.th-darmstadt.de!anh Mon, 17 Jan 94 02:41:35 PST
  153. Received: by bkhouse.cts.com (V1.17-beta/Amiga)
  154.       id <1lpw@bkhouse.cts.com>; Mon, 17 Jan 94 02:41:35 PST
  155. Received: from rbhp89.rbg.informatik.th-darmstadt.de by crash.cts.com with smtp
  156.     (Smail3.1.28.1 #18) id m0pLqF3-0000ikC; Mon, 17 Jan 94 01:27 PST
  157. Received: from rbhp47.rbg.informatik.th-darmstadt.de by rbhp89.rbg.informatik.th-darmstadt.de with SMTP
  158.     (1.36.108.4/15.6) id AA10022; Mon, 17 Jan 1994 10:16:53 +0100
  159. Received: by rbhp47.rbg.informatik.th-darmstadt.de
  160.     (1.36.108.4/15.6) id AA02488; Mon, 17 Jan 1994 10:15:45 +0100
  161. Message-Id: <m0pLqF3-0000ikC@crash.cts.com>
  162. Date: Mon, 17 Jan 94 10:15:43 MEZ
  163. Full-Name: Olivier Anh
  164. Mailer: Elm [revision: 66.25]
  165. From: Olivier Anh <anh@rbhp56.rbg.informatik.th-darmstadt.de>
  166. To: amigae@bkhouse.cts.com
  167. Subject: Re: Converting numbers->strings (fwd)
  168.  
  169. Hi all,
  170.  
  171. > } Yes, there IS a way.  In my own code, I used:
  172. > } 
  173. > } StringF(num,'\d',j-1)
  174. > AHA!!!  I couldn't find 'StringF' in my reference doc.  Knowing
  175. > that it is actually there, I was able to find only:
  176.  
  177. Well, I didn't find this function anywhere (nor in the autodocs...)
  178. but it runs fine !!!!!!!
  179.  
  180. Thanx Trey
  181.  
  182.  
  183. -------------------------------------------------------------------------------
  184.    / / Olivier ANH   (ERAMUS Student)     |' And may the Force be with You ! '
  185. \ X /  anh@rbg.informatik.th-darmstadt.de |                           - Jedi
  186. -------------------------------------------------------------------------------
  187. From crash!rbhp56.rbg.informatik.th-darmstadt.de!anh Mon, 17 Jan 94 04:45:44 PST
  188. Received: by bkhouse.cts.com (V1.17-beta/Amiga)
  189.       id <1lq9@bkhouse.cts.com>; Mon, 17 Jan 94 04:45:44 PST
  190. Received: from rbhp89.rbg.informatik.th-darmstadt.de by crash.cts.com with smtp
  191.     (Smail3.1.28.1 #18) id m0pLrQ3-00009bC; Mon, 17 Jan 94 02:42 PST
  192. Received: from rbhp47.rbg.informatik.th-darmstadt.de by rbhp89.rbg.informatik.th-darmstadt.de with SMTP
  193.     (1.36.108.4/15.6) id AA10659; Mon, 17 Jan 1994 11:42:59 +0100
  194. Received: by rbhp47.rbg.informatik.th-darmstadt.de
  195.     (1.36.108.4/15.6) id AA02784; Mon, 17 Jan 1994 11:41:57 +0100
  196. Message-Id: <m0pLrQ3-00009bC@crash.cts.com>
  197. Date: Mon, 17 Jan 94 11:41:57 MEZ
  198. Full-Name: Olivier Anh
  199. Mailer: Elm [revision: 66.25]
  200. From: Olivier Anh <anh@rbhp56.rbg.informatik.th-darmstadt.de>
  201. To: amigae@bkhouse.cts.com
  202. Subject: Many Questions....
  203.  
  204. Hi all
  205.  
  206. I've sevral questions :
  207.  
  208. 1 : How is it possible to create an Object with an String item in it.
  209.  
  210.      OBJECT x
  211.         t[20] : STRING,
  212.         l : LONG
  213.      ENDOBJECT
  214.  
  215.     this example doesn't work....
  216.  
  217. 2 : I'using the ReqTools.library. I call the RtGetLonGA function, but de 
  218.     returned buffer is clear....
  219.  
  220.     Example :
  221.        buf:=0
  222.        ok:=RtGetLongA(buf,'get long',NIL,0)
  223.        WriteF('buf = \d',buf)
  224.  
  225.     running :
  226.        buf = 0  (whatever I enter and press OK !)
  227.  
  228.     BUT when I recall this line, the content I entered before is always here !?
  229.  
  230. 3 : I compiled the example WbArgs.e found in AmigaE archive. Under WB it 
  231.      doesn't work. This program read the WB arguments you pass to this program.
  232.      Under WB 1.3, I had a Tool icon to WbArg. I run it. The 'Output' window
  233.      opens and closes without doing anything else. No message is written.
  234.      Could someone explain how do I do to run a program under WB 1.3 ?
  235.  
  236.  
  237. Thanx,
  238.  
  239.  
  240. -------------------------------------------------------------------------------
  241.    / / Olivier ANH   (ERAMUS Student)     |' And may the Force be with You ! '
  242. \ X /  anh@rbg.informatik.th-darmstadt.de |                           - Jedi
  243. -------------------------------------------------------------------------------
  244. From crash!archiduc.irit.fr!vintenat Tue, 18 Jan 94 01:33:35 PST
  245. Received: by bkhouse.cts.com (V1.17-beta/Amiga)
  246.       id <1lrb@bkhouse.cts.com>; Tue, 18 Jan 94 01:33:35 PST
  247. Received: from archiduc.irit.fr by crash.cts.com with smtp
  248.     (Smail3.1.28.1 #18) id m0pLuEe-0000d3C; Mon, 17 Jan 94 05:43 PST
  249. Received: from localhost (vintenat@localhost) by archiduc.irit.fr (8.6.4/8.6.4) id OAA10181; Mon, 17 Jan 1994 14:42:21 GMT
  250. Date: Mon, 17 Jan 1994 14:42:21 GMT
  251. Message-Id: <199401171442.OAA10181@archiduc.irit.fr>
  252. From: Lionel VINTENAT <vintenat@archiduc.irit.fr>
  253. To: AmigaE@bkhouse.cts.com
  254. Cc: anh@rbhp56.rbg.informatik.th-darmstadt.de
  255. Subject: Re: Many Questions....
  256.  
  257. >1 : How is it possible to create an Object with an String item in it.
  258. >
  259. >     OBJECT x
  260. >        t[20] : STRING,
  261. >        l : LONG
  262. >     ENDOBJECT
  263.     Try this :
  264. OBJECT x
  265.     t:LONG
  266.     l:LONG
  267. ENDOBJECT
  268. t:=String(20)
  269.  
  270.     It's not exactly an object with a string item in it, but it will do the
  271. same.
  272.  
  273. >2 : I'using the ReqTools.library. I call the RtGetLonGA function, but de 
  274. >    returned buffer is clear....
  275. >
  276. >    Example :
  277. >       buf:=0
  278. >       ok:=RtGetLongA(buf,'get long',NIL,0)
  279. >       WriteF('buf = \d',buf)
  280. >
  281. >    running :
  282. >       buf = 0  (whatever I enter and press OK !)
  283. >
  284. >    BUT when I recall this line, the content I entered before is always here !?
  285.     I don't know the RtGetLongA() function of the ReqTools library, but
  286. I think that ok:=RtGetLongA({buf},'get long',NIL,0) should work because to
  287. allow a function to modify a LONG variable, you must give to this function the
  288. address of the variable. In the example you give, RtGetLongA writes buf at 0
  289. address.
  290.  
  291.     Lionel
  292. From crash!uniwa.uwa.edu.au!multi!robbage Tue, 18 Jan 94 01:34:01 PST
  293. Received: by bkhouse.cts.com (V1.17-beta/Amiga)
  294.       id <1lrt@bkhouse.cts.com>; Tue, 18 Jan 94 01:34:01 PST
  295. Received: from uniwa.uwa.edu.au by crash.cts.com with smtp
  296.     (Smail3.1.28.1 #18) id m0pLuyW-0000uRC; Mon, 17 Jan 94 06:30 PST
  297. Received: from localhost (uucp@localhost) by uniwa.uwa.edu.au (8.6.4/8.6.4) id WAA29919 for bkhouse.cts.com!AmigaE; Mon, 17 Jan 1994 22:30:36 +0800
  298. Received: by multi.multiline.com.au (Smail3.1.28.1 #6)
  299.     id m0pLsev-0003d9C; Mon, 17 Jan 94 20:02 WST
  300. Message-Id: <m0pLsev-0003d9C@multi.multiline.com.au>
  301. Date: Mon, 17 Jan 1994 20:02:17 +0800 (WST)
  302. In-Reply-To: <19940115200617.19386.sognsvann.ifi.uio.no@ifi.uio.no> from "=?iso-8859-1?Q?Arvid_S=F8ndrol_Johansen?=" at Jan 15, 94 09:06:16 pm
  303. X-Mailer: ELM [version 2.4 PL21]
  304. MIME-Version: 1.0
  305. Content-Type: text/plain; charset=US-ASCII
  306. Content-Transfer-Encoding: 7bit
  307. Content-Length: 1850
  308. From: robbage@multi.multiline.com.au (Rob Nottage)
  309. To: AmigaE@bkhouse.cts.com
  310. Subject: Re: Image on a (gadtools) gadget.
  311.  
  312. > Does anybody know how to put an image on a (gadtools) gadget? We've
  313. > tried something like this:
  314.  
  315. Hmm your example isn't a gadtools gadget, but I have successfully put an
  316. image on a gadtools 'GENERIC_KIND' gadget in two or three of my programs.
  317. In fact one program has about 10 gadgets with different images.
  318. One thing to try is using DrawImage() and see if that displays the image
  319. correctly in the window. If so, it's a gadget problem; if not then it's
  320. an image problem. For the GENERIC_KIND gadget, you have to make sure
  321. that you have the gadgetrender pointing to the image, selectrender to the
  322. alternate image if you're using one, set the gadget flags to include
  323. GFLG_GADGIMAGE and if you have an alternate image the also GFLG_GADGHIMAGE.
  324.  
  325. For my image, I used CITAS, which generates c source from a brush,
  326. modified it to suit 'E' and included it in my program.
  327. Rather than add some code here, I'll be making available a demo
  328. GUI program to aid Amiga-E people in creating GUIs using gadtoolsbox
  329. and SRCGEN. It's almost finished now, so I'll post it here ASAP
  330.  
  331. >     IF (memblock:=AllocMem(128,MEMF_CHIP))=NIL THEN Raise(ER_MEMORY)
  332. >     CopyMem({bitmap},memblock,128)
  333.  
  334. I'm not sure on this but should memblock be DEFined as a PTR TO INT ?
  335.  
  336. >     picture.imagedata:=memblock
  337. >     picture.planepick:=NIL
  338. >     picture.planeonoff:=NIL
  339.  
  340. All my images have a planpick of 3. Maybe try that first?
  341.  
  342. >     IF (magnify:=g:=CreateGadgetA(BUTTON_KIND,g,
  343. >         [154,148,25,15,NIL,NIL,1,0,visual,0]:newgadget,
  344. >         [GA_IMAGE,picture,
  345. >         NIL]))=NIL THEN Raise(ER_GADGET)
  346.  
  347. Oh so that's how you do it?  :-) If that works then I can save quite a bit
  348. of code !
  349.  
  350.  
  351. >     IF (wnd:=OpenW(10,15,200,offsety+165,$304 OR SCROLLERIDCMP,$E,
  352. >         'ImageGadget',NIL,1,glist))=NIL THEN Raise(ER_WINDOW)
  353. >     Gt_RefreshWindow(wnd,NIL)
  354.  
  355. You don't use OpenWindowTagList() ?
  356.  
  357. Hope I've helped somewhere.
  358. From crash!plucky.ike.safb.af.mil!bwills Tue, 18 Jan 94 01:34:15 PST
  359. Received: by bkhouse.cts.com (V1.17-beta/Amiga)
  360.       id <1ls2@bkhouse.cts.com>; Tue, 18 Jan 94 01:34:15 PST
  361. Received: from kirk.safb.af.mil by crash.cts.com with smtp
  362.     (Smail3.1.28.1 #18) id m0pLvXz-0000gzC; Mon, 17 Jan 94 07:07 PST
  363. Received: from ike (ike [140.175.6.44]) by kirk.safb.af.mil (8.6.4/8.6.4) with SMTP id JAA12373 for <amigae@bkhouse.cts.com>; Mon, 17 Jan 1994 09:06:35 -0600
  364. Received: from plucky.safb.af.mil by ike (4.1/SMI-4.1)
  365.     id AA07494; Mon, 17 Jan 94 09:03:00 CST
  366. Received: by plucky.safb.af.mil (4.1/SMI-4.1)
  367.     id AA01457; Mon, 17 Jan 94 09:04:38 CST
  368. Date: Mon, 17 Jan 94 09:04:38 CST
  369. Message-Id: <9401171504.AA01457@plucky.safb.af.mil>
  370. From: bwills@plucky.safb.af.mil (Barry D Wills)
  371. To: 
  372. Subject: Many questions
  373.  
  374. >> Hi all
  375.    
  376. Hi, Olivier!
  377.  
  378. >> I've sevral questions :
  379.    
  380. Hm.
  381.  
  382. >> 1 : How is it possible to create an Object with an String item in it.
  383. >>
  384. >>     OBJECT x
  385. >>        t[20] : STRING,
  386. >>        l : LONG
  387. >>     ENDOBJECT
  388. >>
  389. >>    this example doesn't work....
  390.  
  391. Right.  You're only allowed to have basic types in object 
  392. declarations (LONG, INT, CHAR).  So this is ok:
  393.  
  394. OBJECT x1
  395.   a:CHAR
  396.   b:INT
  397.   c:LONG, d:CHAR
  398. ENDOBJECT                                  
  399.  
  400. But trying to reserve storage for larger areas of contiguous
  401. memory is only possible if you know assembly and have
  402. figured out how to use the ICONVERT tool to create your own
  403. modules of OBJECT types.
  404.  
  405. What you must do here is:
  406.  
  407. DEF my_x:x1, s:PTR TO CHAR
  408. x1.c:=String(20) /* x1.c is type LONG, used as a PTR TO CHAR */
  409. s:=x1.c          /* x1.c and s now point to the same string  */
  410. /*-- now do something, anything --*/
  411. FOR i := 1 TO StrMax(s) DO s[i]:="0"
  412.  
  413. >> 2 : I'using the ReqTools.library. I call the RtGetLonGA function, but de 
  414. >>    returned buffer is clear....
  415. >>
  416. >>    Example :
  417. >>       buf:=0
  418. >>       ok:=RtGetLongA(buf,'get long',NIL,0)
  419.  
  420. You need to pass the *address* of buf so that the library 
  421. function can change it.  Use: 
  422.  
  423.   ok:=RtGetLongA({buf},'get long',NIL,0)
  424.  
  425. >>        WriteF('buf = \d',buf)
  426.  
  427. No other changes, the only different is in the call to 
  428. RtGetLongA().
  429.  
  430. >>     running :
  431. >>        buf = 0  (whatever I enter and press OK !)
  432. >>
  433. >>     BUT when I recall this line, the content I entered before is always here !?
  434.  
  435. That's because buf is unchanged (pointing at address 0).
  436. The memory at address 0 this holds your input.  You could 
  437. crash your machine doing that. :-)
  438.  
  439. >> 3 : I compiled the example WbArgs.e found in AmigaE archive. Under WB it 
  440. >>      doesn't work. This program read the WB arguments you pass to this program.
  441. >>      Under WB 1.3, I had a Tool icon to WbArg. I run it. The 'Output' window
  442. >>      opens and closes without doing anything else. No message is written.
  443. >>      Could someone explain how do I do to run a program under WB 1.3 ?
  444.  
  445. Aaaaa! 1.3! :-)  Can't remember if I got that one to work under
  446. 1.3, but I think it should.  Put some WriteF() statements in
  447. there and add a Delay(5*50) (to delay 5 seconds) right before
  448. exiting the program.  Dig in, dude!  It's not like you have to
  449. wait for some C compiler to chug, link, and puke! :-) :-)  
  450. (Hang on whilst I fiddle with wbarg.e)  Hm, I could only get
  451. one arg out of wbmessage.  Want to comment, anyone?  Wouter?
  452. wb.numargs is always 1, go figger!
  453.  
  454. If I come up with anything else I'll holler.
  455.  
  456. Later.
  457. -- Barry
  458. From crash!world.std.com!cosell Tue, 18 Jan 94 01:34:30 PST
  459. Received: by bkhouse.cts.com (V1.17-beta/Amiga)
  460.       id <1lsc@bkhouse.cts.com>; Tue, 18 Jan 94 01:34:30 PST
  461. Received: from world.std.com by crash.cts.com with smtp
  462.     (Smail3.1.28.1 #18) id m0pLvo5-0000CfC; Mon, 17 Jan 94 07:23 PST
  463. Received: by world.std.com (5.65c/Spike-2.0)
  464.     id AA27136; Mon, 17 Jan 1994 10:23:55 -0500
  465. X-Mailer: //\\miga Electronic Mail (AmiElm 2.253)
  466. Content-Length: 502
  467. Date: Monday, 17 January 1994 10:21 EST
  468. Organization: Fantasy Farm Fibers
  469. Message-Id: <5860:37270@fantasyfarm.com>
  470. From: bernie@fantasyfarm.com (Bernie Cosell)
  471. To: AmigaE@bkhouse.cts.com
  472. Subject: "-e" compiler switch?
  473.  
  474. I was going to put together a set of arexx macros to run the e
  475. compiler out of my editor [textra], and so I looked at Ecomp.rexx
  476. And discovered that it selects the compiler switches "-we".  The -w
  477. part is no problem, but my copy of reference.doc makes no mention of
  478. an "e" switch.  What is it?  And.. are there any other switches
  479. that are undocumented?
  480.  
  481. Thanks
  482.   /Bernie\
  483. -- 
  484. Bernie Cosell                               bernie@fantasyfarm.com
  485. Fantasy Farm Fibers, Pearisburg, VA         (703) 921-2358
  486. From crash!UNCA.EDU!JVANRIPER Tue, 18 Jan 94 01:34:38 PST
  487. Received: by bkhouse.cts.com (V1.17-beta/Amiga)
  488.       id <1lsh@bkhouse.cts.com>; Tue, 18 Jan 94 01:34:38 PST
  489. Received: from uncavx by crash.cts.com with smtp
  490.     (Smail3.1.28.1 #18) id m0pLw1i-0000O5C; Mon, 17 Jan 94 07:38 PST
  491. Received: from UNCA.EDU by UNCA.EDU (PMDF V4.2-15 #5911) id
  492.  <01H7SAZ3CW4M8Y50GH@UNCA.EDU>; Mon, 17 Jan 1994 10:36:38 EST
  493. Date: Mon, 17 Jan 1994 10:36:38 -0500 (EST)
  494. Message-id: <01H7SAZ3CW4O8Y50GH@UNCA.EDU>
  495. Organization: University of North Carolina at Asheville
  496. X-VMS-To: IN%"AmigaE@bkhouse.cts.com"
  497. MIME-version: 1.0
  498. Content-type: TEXT/PLAIN; CHARSET=US-ASCII
  499. Content-transfer-encoding: 7BIT
  500. From: "Joseph E. Van_Riper III" <JVANRIPER@UNCA.EDU>
  501. To: AmigaE@bkhouse.cts.com
  502. Subject: Re: Converting numbers->strings (fwd)
  503.  
  504. Olivier wrote (regarding StringF):
  505.  
  506. | Well, I didn't find this function anywhere (nor in the autodocs...)
  507. | but it runs fine !!!!!!!
  508.  
  509. I had trouble finding it, too, but it's actually in the Reference.[doc|guide]
  510. somewhere.  It wasn't explicitely pointed out in the documentation, so you find
  511. it 'in passing.'  I suppose Wouter forgot about it or something when he was
  512. drawing up the descriptions of things.
  513.  
  514. Here's the only reference (somewhere around line 214 of 'reference.doc'):
  515.  
  516. > Strings may contain format signs introduced by a slash "\", either to
  517. > introduce characters to the string that are for some reason not displayable,
  518. > or for use with string formatting like WriteF(), TextF() and StringF(), or
  519. > kick2 Vprintf().
  520.  
  521. I think, from there, I guessed at what 'StringF' would look like, and it seemed
  522. to work.  Howz THAT for non-stick?
  523.  
  524. | Thanx Trey
  525.  
  526. Quite welcome.  Little things like this, though, make me wonder what else I may
  527. be missing in the language.
  528.  
  529. - Trey
  530.